/**
 * @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm 
 * @Version 16-12-2014
 */

package modelLayer;

public class Driver {
	private int driverId;
	private String fName;
	private String lName;
	private String phoneNo;
	private Supplier supplier;
	
	
	/**
	 * Constructor 1: For creation in ctrClass
	 *
	 * @param driverId
	 * @param fName
	 * @param lName
	 * @param phoneNo
	 * @param supplier
	 */
	public Driver(int driverId, String fName, String lName, String phoneNo, Supplier supplier) {
		this.driverId = driverId;
		this.fName = fName;
		this.lName = lName;
		this.phoneNo = phoneNo;
		this.supplier = supplier;
	}
	
	/**
	 * Constructor 2: For creation in dbClass
	 */
	public Driver(){
		driverId = 0;
		fName = "";
		lName = "";
		phoneNo = "";
		supplier = null;
	}
	
	
	/**
	 * Constructor 3: For creation as association.
	 */
	public Driver(int driverId) {
		this.driverId = driverId;
		this.fName = null;
		this.lName = null;
		this.phoneNo = null;
		this.supplier = null;
	}

	//Get and set driverId
	public int getDriverId() {
		return driverId;
	}
	public void setDriverId(int driverId) {
		this.driverId = driverId;
	}
	//Get and set first name
	public String getfName() {
		return fName;
	}
	public void setfName(String fName) {
		this.fName = fName;
	}
	//Get and set last name
	public String getlName() {
		return lName;
	}
	public void setlName(String lName) {
		this.lName = lName;
	}
	//Get and set phoneNo
	public String getPhoneNo() {
		return phoneNo;
	}
	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}
	//Get and set supplier
	public void setSupplier(Supplier supplier){
		this.supplier = supplier;
	}
	public Supplier getSupplier(){
		return this.supplier;
	}
	
}
